﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class D05_Vector3_2 : MonoBehaviour
{
    public Transform cubeA, cubeB;

    private void Update()
    {
        cubeB.position = Vector3.ProjectOnPlane(cubeA.position, Vector3.up);
    }
}